﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace Cherry.Agile.Framework
{
    [DataContract]
    public class OrderByModel
    {
        public OrderByModel()
        {
            Items = new List<BaseItem>();
        }

        /// <summary>
        /// 排序字段列表
        /// </summary>
        [DataMember]
        public List<BaseItem> Items { get; set; }

        /// <summary>
        /// 排序类型
        /// </summary>
        [DataMember]
        public OrderByType OrderByType
        {
            set;
            get;
        }
    }

    /// <summary>
    /// 排序类型枚举
    /// </summary>
    public enum OrderByType
    {
        OrderBy,
        OrderByDescending
    }
}
